package com.tm.exception.utils;

public enum ResultCode {

    SUCCESS("成功",200),
    ERROR("失败",-1),
    USERNAME_PWD("账号密码为空",99),
    USERNAME_PWD_ERROR("账号密码错误",100),
    USERNAME_STATUS_ERROR("账号被禁用",101),
    SEND_MSG_ERROR("验证码发送频繁",102),
   LOGING_ERROR("未登录",103),
    CODE_ERROR("验证码错误",104),

    ;
    ResultCode(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    private  String message;
    private  Integer code;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
